<?php


namespace apps\marriage\app\mp\controller;


use apps\marriage\core\logic\CaptchaLogic;

class CaptchaController extends BaseMarriageMpController
{
    /**
     * @var CaptchaLogic
     */
    private $captchaLogic;

    protected function init()
    {
        parent::init();
        $this->captchaLogic = logic('Captcha', LOGIC_NAMESPACE);
    }

    public function entry()
    {
        return $this->success($this->captchaLogic->entry());
    }
}